package com.yuhuihui.common.utils.excel.export.parameters;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * excel导出参数--多个个sheet
 *
 * @author yuhh
 * @date 2022-08-22 16:20:32
 */
public class ExcelExportBatchSheetParameter<T> {

    /**
     * response
     */
    private HttpServletResponse response;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 多个sheet参数
     */
    private List<ExcelExportSheetParameter<T>> sheetParameters;

    /**
     * 最大行数
     */
    private Integer maxRows;

    public ExcelExportBatchSheetParameter(HttpServletResponse response, String fileName,
                                               List<ExcelExportSheetParameter<T>> sheetParameters){
        this.response = response;
        this.fileName = fileName;
        this.sheetParameters = sheetParameters;
    }

    public ExcelExportBatchSheetParameter(){

    }

    public HttpServletResponse getResponse() {
        return response;
    }

    public void setResponse(HttpServletResponse response) {
        this.response = response;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public List<ExcelExportSheetParameter<T>> getSheetParameters() {
        return sheetParameters;
    }

    public void setSheetParameters(List<ExcelExportSheetParameter<T>> sheetParameters) {
        this.sheetParameters = sheetParameters;
    }

    public Integer getMaxRows() {
        return maxRows;
    }

    public void setMaxRows(Integer maxRows) {
        this.maxRows = maxRows;
    }
}
